<template>
    <div>
        <el-upload v-model:file-list="fileList" class="upload-demo"
            action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15" multiple :on-preview="handlePreview"
            :on-remove="handleRemove" :before-remove="beforeRemove" :limit="3" :on-exceed="handleExceed">
            <el-button type="primary">导入</el-button>
        </el-upload>
        <el-button @click="Export">导出</el-button>
    </div>
</template>
<script setup>
import { ref, reactive, toRefs,onMounted } from "vue" 
import {download} from '@/utils/common'
import { trend } from '@/http/api'
    const Export=()=>{
        download(123456,'1.xlsx')
    }
    const handlePreview=(val)=>{
        console.log(val);
    }
    onMounted(()=>{
        let res = trend()
    console.log(123,res);
    })
</script>
<style lang="scss" scoped>
</style>